$(document).ready(function() {
    // Use JQueryUI Tabs.
	$("#history").tabs({ "activate": addScrollerIfNeeded })
	             .addClass("ui-tabs-vertical ui-helper-clearfix");
	$("#history li").removeClass("ui-corner-top").addClass("ui-corner-left");
	
	addScrollerIfNeeded();
});


function addScrollerIfNeeded() {
    $(".scrollable").nanoScroller({ contentClass: "scrollable-content", alwaysVisible: true });
}
